package com.by.course.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.by.course.entity.bo.BaseUser;
import com.by.course.entity.vo.user.req.GetBaseUserVO;
import com.by.course.entity.vo.user.resp.BaseUserResultVO;

import java.util.List;

public interface BaseUserMapper extends BaseMapper<BaseUser> {
    int deleteByPrimaryKey(Long id);

    int insert(BaseUser record);

    int insertSelective(BaseUser record);

    BaseUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(BaseUser record);

    int updateByPrimaryKey(BaseUser record);

    BaseUser login(String mobilePhone, String password);

    BaseUser selectUserByMobilePhone(String mobilePhone);

    Integer countQueryUsers(GetBaseUserVO vo);

    List<BaseUserResultVO> queryUsers(GetBaseUserVO vo);
}